package com.xu.wemall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xu.wemall.entry.Order;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public interface IOrderService extends IService<Order> {

    /**
     * 创建订单
     * @param userId
     * @param orderId
     * @param createTime
     * @param status
     */
    void createOrder(Long userId, Long orderId, LocalDateTime createTime, String status);

    /**
     * 获取订单
     * @param startDate
     * @param endDate
     * @return
     */
    List<Order> getOrdersByYear(LocalDateTime startDate, LocalDateTime endDate) ;

}

